package com.yyfax.pay.config.model.to;

import org.apache.commons.lang3.StringUtils;

import com.yyfax.framework.exception.YYException;
import com.yyfax.framework.model.Params;
import com.yyfax.framework.yyfax.enums.RspCodeEnum;

/**
 * 查询商户银行支付路由信息列表传入参数
 * 
 * @author changxd
 * @date 2017-04-13
 * @since TODO(说明当前修改版本号)
 */
@SuppressWarnings("serial")
public class PaymentRouteQueryParams extends Params {

	/** 自增主键 */
	private int id;

	/** 商户编号 */
	private String merchantCode;
	
	private String BankCode;

	@Override
	public boolean validate() throws Exception {
		if (StringUtils.isBlank(merchantCode)) {
			throw new YYException(RspCodeEnum.COMMON_ERROR_PARAMETER_INVALID, "参数 'merchantCode'不能为空");
		}
		return true;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMerchantCode() {
		return merchantCode;
	}

	public void setMerchantCode(String merchantCode) {
		this.merchantCode = merchantCode;
	}

	public String getBankCode() {
		return BankCode;
	}

	public void setBankCode(String bankCode) {
		BankCode = bankCode;
	}

}
